<template>
  <base-page-view class-name="page-container">
    <view class="sign">
      <textarea v-model="sign" class="uni-textarea" focus placeholder="请输入个性签名可以获得更多的关注哦~" />
    </view>
    <view class="update_btn" @click="updateNike">
      修改
    </view>
  </base-page-view>
</template>

<script>
import './index.scss'
export default {
  components: {
  },
  data() {
    return {
      sign: ''
    }
  },
  created() {
  },
  onLoad(option) {
    this.sign = JSON.parse(decodeURIComponent(option.sign))
  },
  onShow() {

  },
  methods: {
    updateNike() {
      this.$api.mineApi.setMyInfo({
        signature: this.sign,
        hideLoading: true
      }).then((res) => {
        // console.log(res)
        uni.navigateBack()
      })
    }
  }
}
</script>
